mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-24 21:06:02 +03:00
[PR #2807] Harden XML parsing against XXE #2804
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#2804
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2807
Author: @CarstenGrohmann
Created: 2/23/2026
Status: 🔄 Open
Base:
master← Head:add_xml_entity_restrictions📝 Commits (2)
1cc7e66Raise minimum libxml2 version from 2.6 to 2.95c2cd2fHarden XML parser against XXE attacks📊 Changes
6 files changed (+20 additions, -13 deletions)
View changed files
📝
COMPILATION.md(+2 -2)📝
configure.ac(+8 -8)📝
src/mpu_util.cpp(+1 -1)📝
src/s3fs.cpp(+1 -1)📝
src/s3fs_xml.cpp(+1 -1)📝
src/s3fs_xml.h(+7 -0)📄 Description
All three
xmlReadMemory()calls passoptions = 0. S3 responses never use DTDs or entities, so the parser should reflect that.This PR:
XML_PARSE_NO_XXEon libxml2 >= 2.13 andXML_PARSE_NONETon 2.6–2.14 for defense in depthCloses #2805
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.