[medium] semgrep: Service 'mailserver' is running with a writable root filesystem. This may allow malicious applications to download and run additional payloads, or modify container files. If an application inside a container has to save something temp… #54

Open
opened 2026-03-30 11:21:43 +00:00 by sharang · 0 comments
Owner

medium Finding

Scanner: semgrep
Severity: medium
Rule: yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service

Description

Service 'mailserver' is running with a writable root filesystem. This may allow malicious applications to download and run additional payloads, or modify container files. If an application inside a container has to save something temporarily consider using a tmpfs. Add 'read_only: true' to this service to prevent this.

Location

File: /tmp/compliance-scanner/repos/Compliance Scanner Agent/deploy/docker-compose.mailserver.yml (line 4)

Code

requires login

Remediation

Add read_only: true to the mailserver service in docker-compose.yml.


Fingerprint: ee24671718f2efe314a2119938f522f93fb610473700cda0404df38b9c00ff87
Generated by compliance-scanner

Labels: severity:medium, scanner:semgrep, compliance-scanner

## medium Finding **Scanner:** semgrep **Severity:** medium **Rule:** yaml.docker-compose.security.writable-filesystem-service.writable-filesystem-service ### Description Service 'mailserver' is running with a writable root filesystem. This may allow malicious applications to download and run additional payloads, or modify container files. If an application inside a container has to save something temporarily consider using a tmpfs. Add 'read_only: true' to this service to prevent this. ### Location **File:** `/tmp/compliance-scanner/repos/Compliance Scanner Agent/deploy/docker-compose.mailserver.yml` (line 4) ### Code ``` requires login ``` ### Remediation Add `read_only: true` to the mailserver service in docker-compose.yml. --- *Fingerprint:* `ee24671718f2efe314a2119938f522f93fb610473700cda0404df38b9c00ff87` *Generated by compliance-scanner* **Labels:** severity:medium, scanner:semgrep, compliance-scanner
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sharang/compliance-scanner-agent#54