[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… #29

Open
opened 2026-03-18 16:01:24 +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/deploy/docker-compose.mailserver.yml (line 4)

Code

requires login

Fingerprint: 00c1298a3163816c428b7d0bc82d651df6a60b686266f3f36b99b58ec1ebf6bd
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/deploy/docker-compose.mailserver.yml` (line 4) ### Code ``` requires login ``` --- *Fingerprint:* `00c1298a3163816c428b7d0bc82d651df6a60b686266f3f36b99b58ec1ebf6bd` *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#29