cbcvebase.
CVE-2013-1862
published 2013-06-10

CVE-2013-1862: mod_rewrite.c in the mod_rewrite module in the Apache HTTP Server 2.2.x before 2.2.25 writes data to a log file without sanitizing non-printable characters…

PriorityP344medium5.1CVSS 2.0
AVNACHAuNCPIPAP
EPSS
24.89%
97.7th percentile
mod_rewrite.c in the mod_rewrite module in the Apache HTTP Server 2.2.x before 2.2.25 writes data to a log file without sanitizing non-printable characters, which might allow remote attackers to execute arbitrary commands via an HTTP request containing an escape sequence for a terminal emulator.

Affected

26 ranges· showing 25
VendorProductVersion rangeFixed in
apachehttp_server>= 2.0.0 < 2.0.652.0.65
apachehttp_server>= 2.2.0 < 2.2.252.2.25
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
debianapache2< apache2 2.4.1-1 (bookworm)apache2 2.4.1-1 (bookworm)
opensuseopensuse
opensuseopensuse
opensuseopensuse
oraclehttp_server
oraclehttp_server
oraclehttp_server
oraclehttp_server
redhatenterprise_linux_desktop
redhatenterprise_linux_desktop
redhatenterprise_linux_eus
redhatenterprise_linux_eus
redhatenterprise_linux_server
redhatenterprise_linux_server
redhatenterprise_linux_server_aus
redhatenterprise_linux_server_aus
redhatenterprise_linux_workstation
redhatenterprise_linux_workstation
redhatjboss_enterprise_application_platform

Detection & IOCsextracted from sources · hover to see the quote

  • Detect HTTP requests containing terminal escape sequences (e.g., ESC [ sequences) targeting Apache mod_rewrite, which may be injected to manipulate log files viewed in a terminal emulator.
  • Monitor Apache RewriteLog files for non-printable or terminal escape sequence characters written by mod_rewrite's do_rewritelog() function, indicating potential exploitation attempts.
  • The vulnerability is triggered via crafted HTTP requests processed by the do_rewritelog() function in mod_rewrite; monitor for anomalous non-printable characters in HTTP request URIs or headers on Apache 2.2.x before 2.2.25.
  • Review the upstream patch at the Apache SVN revision r1469311 to understand the exact sanitization fix applied to mod_rewrite.c, and use it to build targeted detection logic.
  • ·The vulnerability is only exploitable if the RewriteLog directive is enabled in the Apache mod_rewrite configuration; without active rewrite logging, escape sequences cannot be written to log files.
  • ·Exploitation requires a user to view the tampered log file in a terminal emulator for arbitrary command execution to occur; the initial injection alone does not execute commands.
  • ·In typical network configurations, the attacker likely needs access to trusted internal networks to submit crafted requests, reducing the likelihood of successful remote exploitation.

CVSS provenance

nvdv2.05.1MEDIUMAV:N/AC:H/Au:N/C:P/I:P/A:P
osv5.1MEDIUM
vendor_cisco5.1MEDIUM
vendor_debian5.1LOW
vendor_redhat5.1MEDIUM
vendor_ubuntu5.1MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.