Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1310 CNY

100%

CVE-2018-15686 PoC — systemd: reexec state injection: fgets() on overlong lines leads to line splitting

Source
Associated Vulnerability
Title:systemd: reexec state injection: fgets() on overlong lines leads to line splitting (CVE-2018-15686)
Description:A vulnerability in unit_deserialize of systemd allows an attacker to supply arbitrary state across systemd re-execution via NotifyAccess. This can be used to improperly influence systemd execution and possibly lead to root privilege escalation. Affected releases are systemd versions up to and including 239.
Description
Remediation task for CVE-2018-15686, CVE-2018-16866, and CVE-2018-16888 affecting SystemD in EL7
Readme
# cesa_2019_2091

This module contains a [Bolt Task](https://puppet.com/docs/bolt/latest/bolt.html) that will remediate CVEs described in [CESA-2019:2091](https://lists.centos.org/pipermail/centos-cr-announce/2019-August/006149.html) and parallel issues present on other Enterprise Linux 7 (EL7) platforms. 

#### Table of Contents

1. [Description](#description)
2. [Setup - The basics of getting started with cesa_2019_2091](#setup)
    * [Beginning with cesa\_2019\_2091](#beginning-with-cesa_2019_2091)
3. [Usage - Configuration options and additional functionality](#usage)
4. [Limitations - OS compatibility, etc.](#limitations)
5. [Development - Guide for contributing to the module](#development)

## Description

This remediation addresses the following CVEs:

* [CVE-2018-15686]( https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-15686 )
* [CVE-2018-16866]( https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-16866 )
* [CVE-2018-16888]( https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-16888 )

Remediation is performed by using yum to updating key systemd packages to newer versions. Affected systemd RPM packages include:

* systemd
* systemd-libs
* systemd-sysv

## Setup


### Beginning with cesa\_2019\_2091

Using a Puppet file or other method, install in an appropriate place such that the task is visible to your task runner.

  **EXAMPLE** 
  
    $ bolt task show
    
	cesa_2019_2091::remediate   remediates CVE-2018-15686, CVE-2018-16866, and CVE-2018-16888
    


## Usage

Using your prefered method of running bolt tasks, run the task.

   **EXAMPLE**
   
   $ bolt task run cesa\_2019\_2091::remediate -n cent7-1,cent7-2,cent7-3


## Limitations

This remediation relies on yum, yum repositories, and related technologies to update RPM packages.

This remediation updates the relevant RPM packages to the latest available version without additional version checks. If your system remains vulnerable to these CVEs, it is likely sufficiently updated RPMs are **not** available in your yum repository as presntly configured.

This remediation targets the standard systemd packages most likely to be affected by these CVEs. Additional packages which may require attention are described in the relevant [CentOS-CR-announce mailing list announcement](https://lists.centos.org/pipermail/centos-cr-announce/2019-August/006149.html)


## Development

Pull requests welcome

## Release Notes

| Version | Notes                                                              |
| ------- | -------------------------------------------------------------------|
| 0.1.0   | Initial release                                                    |
|         |                                                                    |
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →