CVE-2013-5648: Path Traversal

Published Aug 28, 2013
·
Updated

Absolute path traversal vulnerability in the handleStartDataFile function in DigiDocSAXParser.c in libdigidoc 3.6.0.0, as used in ID-software before 3.7.2 and other products, allows remote attackers to overwrite arbitrary files via a filename beginning with / (slash) or \ (backslash) in a DDOC file.

Other sources

It was reported [1],[2] that ID-software 3.7.2 (libdigidoc):

"Fixed one critical bug in the DDOC parsing routines. By persuading a victim to open a specially-crafted DDOC file, a remote attacker could exploit this vulnerability to overwrite arbitrary files on the system with the privileges of the victim."

The patch is in svn (not the repository from code.google.com/p/esteid, but from svn.eesti.ee) [3] (r98). This patch was backported for Mageia [4] and looks applicable to what we ship in Fedora (although we have a much older version). The patch from Mageia (or upstream) won't apply without changes, however, as it's adding a new error code. Judging from the patch, it's just making sure that the file name doesn't include '/' or '\\' (so no paths in the filename).

[1] http://www.id.ee/?lang=en&id=34283#372 [2] https://bugs.mageia.org/showbug.cgi?id=11100 [3] https://svn.eesti.ee/projektid/idkaartpublic/ [4] http://svnweb.mageia.org/packages/updates/3/libdigidoc/current/SOURCES/libdigidoc-3.6.0.0-security-fix-DataFile-name-tag.patch?revision=472660&view=markup

Red Hat

Affected Software

4 affected componentsFixes available
redhat/libdigidoc<3.7.2
3.7.2
iD ID-software=3.7
iD ID-software=3.7.1
iD libdigidoc=3.6.0.0

Event History

Aug 29, 2013
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2013-5648?

CVE-2013-5648 has a high severity level due to its ability to allow remote attackers to overwrite arbitrary files.

2

How do I fix CVE-2013-5648?

To fix CVE-2013-5648, upgrade to libdigidoc version 3.7.2 or later.

3

What products are affected by CVE-2013-5648?

CVE-2013-5648 affects libdigidoc versions prior to 3.7.2 and various ID-software releases up to version 3.7.1.

4

What type of vulnerability is CVE-2013-5648?

CVE-2013-5648 is categorized as an absolute path traversal vulnerability.

5

Can CVE-2013-5648 be exploited remotely?

Yes, CVE-2013-5648 can be exploited remotely by attackers through crafted DDOC files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203