Bug 2218778 (CVE-2023-35852)

Summary: CVE-2023-35852 suricata: directory traversal
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Suricata 6.0.13 Doc Type: ---
Doc Text:
OISF Suricata could allow a remote attacker to traverse directories on the system, caused by improper validation of dataset filename. An attacker could send a specially crafted URL request containing "dot dot" sequences (/../) to write arbitrary files on the system.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-04 07:44:08 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: 2218780, 2218781    
Bug Blocks: 2215922    

Description TEJ RATHI 2023-06-30 06:47:50 UTC
In Suricata before 6.0.13 (when there is an adversary who controls an external source of rules), a dataset filename, that comes from a rule, may trigger absolute or relative directory traversal, and lead to write access to a local filesystem. This is addressed in 6.0.13 by requiring allow-absolute-filenames and allow-write (in the datasets rules configuration section) if an installation requires traversal/writing in this situation.

https://www.stamus-networks.com/stamus-labs
https://github.com/OISF/suricata/compare/suricata-6.0.12...suricata-6.0.13
https://github.com/OISF/suricata/commit/aee1523b4591430ebed1ded0bb95508e6717a335
https://github.com/OISF/suricata/commit/735f5aa9ca3b28cfacc7a443f93a44387fbacf17

Comment 1 TEJ RATHI 2023-06-30 06:49:04 UTC
Created suricata tracking bugs for this issue:

Affects: epel-all [bug 2218781]
Affects: fedora-all [bug 2218780]

Comment 2 Product Security DevOps Team 2023-07-04 07:44:05 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.