Bug 2379955

Summary: CVE-2025-51591 pandoc: Server-Side Request Forgery in Pandoc [fedora-41]
Product: [Fedora] Fedora Reporter: Jon Moroney <jmoroney>
Component: pandocAssignee: Jens Petersen <petersen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 41CC: castedo, michel, petersen
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["72b33082-8eec-48b6-b980-41f8289080d9"]}
Fixed In Version: pandoc-3.1.11.1-34.fc41 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-10-08 01:15:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2379543    

Description Jon Moroney 2025-07-14 20:19:09 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

The following link provides references to all essential vulnerability management information. If something is wrong or missing, please contact a member of PSIRT.
https://spaces.redhat.com/display/PRODSEC/Vulnerability+Management+-+Essential+Documents+for+Engineering+Teams

Comment 1 Jens Petersen 2025-08-04 09:22:07 UTC
I think the only thing I can do here is to patch the manpage to explain the potential threat.

The upstream commit related to this just updated the manual
to update about the potential threat of iframe via pdf:
https://github.com/jgm/pandoc/commit/67edf7ce7cd3563a180ae44bd122b012e22364f8

The text appears in https://pandoc.org/MANUAL.html#a-note-on-security

Comment 2 Jens Petersen 2025-08-18 07:30:15 UTC
There is no ("upstream") fix for this, as in it can't be fixed.
Upstream merely updated the documentation to mention this specific weakness.

Running pandoc on raw untrusted input is not safe.

The best workaround is to enable server mode which has been done in Rawhide recently.
In principle that could be backported to F42 and earlier.

Comment 3 Fedora Update System 2025-09-29 09:35:44 UTC
FEDORA-2025-ef1d49c67b (pandoc-3.1.11.1-34.fc41 and pandoc-cli-3.1.11.1-34.1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-ef1d49c67b

Comment 4 Fedora Update System 2025-09-30 02:42:17 UTC
FEDORA-2025-ef1d49c67b has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-ef1d49c67b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-ef1d49c67b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-10-08 01:15:49 UTC
FEDORA-2025-ef1d49c67b (pandoc-3.1.11.1-34.fc41 and pandoc-cli-3.1.11.1-34.1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.