For general information only. This library does not replace advice, diagnosis or treatment from a qualified health professional. In an emergency, call 911.

Library / Conditions

Brain and spinal cord infections

Brain and spinal cord infections are infections of the central nervous system, caused by bacteria, viruses, fungi, parasites or prions, and many need urgent treatment.

Clinician view: includes diagnostic criteria, management and safety detail.

Overview

Your central nervous system (CNS) is made up of your brain and spinal cord. It is wrapped in thin protective layers called the meninges and bathed in a clear liquid called cerebrospinal fluid. Doctors use the term central nervous system infections for any infection that reaches the brain, the spinal cord or the layers around them.

These infections are not common, but they can be serious. The brain and spinal cord control thinking, movement, feeling and breathing, so swelling or damage there can quickly affect the whole body. The good news is that many CNS infections can be treated, especially when they are found early. Some can also be prevented with vaccines.

This page is an overview of the whole group: the main types, the symptoms they share, how doctors find out what is wrong, and how they are treated. You can read more about each type on its own page.

Main types

CNS infections are usually grouped in two ways: by where the infection is, and by what germ causes it.

By where the infection is

  • Meningitis: infection and swelling of the meninges, the layers covering the brain and spinal cord.
  • Encephalitis: infection and swelling of the brain itself. When both the brain and meninges are affected, it is called meningoencephalitis.
  • Myelitis: swelling of the spinal cord. When both the brain and spinal cord are inflamed, it is called encephalomyelitis.
  • Brain abscess: a pocket of pus inside the brain.
  • Epidural abscess: pus collecting between the bones of the skull or spine and the tough outer layer around the brain or spinal cord. This and similar infections next to the meninges are called perimeningeal infections.

By the type of germ

  • Bacterial infections: for example, bacterial meningitis and most brain abscesses. These are often the most urgent.
  • Viral infections: the most common known infectious cause of meningitis and encephalitis. Examples include enteroviruses, herpes simplex virus, varicella-zoster virus (the chickenpox and shingles virus) and viruses spread by mosquitoes or ticks, such as West Nile virus.
  • Fungal infections: such as cryptococcal meningitis. These mostly affect people with a weak immune system.
  • Parasitic infections: such as toxoplasmosis, or neurocysticercosis from pork tapeworm larvae.
  • Prion diseases: rare, fatal conditions caused by abnormal proteins called prions, such as Creutzfeldt-Jakob disease. Symptoms usually get worse over weeks to months.

Symptoms

Symptoms depend on which part of the nervous system is affected and on the germ. Bacterial infections often come on over hours. Viral infections may build over a day or more. Fungal, parasitic and prion infections may develop over weeks or months.

Common symptoms

  • Fever, chills or feeling very unwell
  • Severe headache
  • Stiff neck, or pain when bending your chin to your chest
  • Sensitivity to bright light
  • Nausea and vomiting
  • Confusion, unusual behaviour, or being very sleepy and hard to wake
  • Seizures (fits)
  • Weakness, numbness or tingling in part of the body
  • Problems with speech, vision or balance

With a spinal cord infection or an epidural abscess, you may have severe back pain, weakness in the legs, numbness, or trouble controlling your bladder or bowels.

Some forms of bacterial meningitis, especially meningococcal infection, can cause a rash of small red, purple or brown spots that do not fade when you press a glass against them. This rash can be harder to see on brown or black skin, so also check paler areas like the palms, soles or inside the eyelids.

In babies and young children

Babies may not show the usual signs. Watch for fever or a low body temperature, poor feeding, being floppy or very sleepy, a high-pitched cry, irritability, vomiting, or a bulging soft spot on the top of the head.

In older adults and people with a weak immune system

Symptoms may be milder or less typical. Sudden confusion may be the main sign, and fever may be low or absent.

Causes and how they spread

Germs can reach the central nervous system in several ways:

  • Through the blood: germs from an infection elsewhere, such as the lungs or the heart valves, can travel to the brain.
  • From nearby areas: an infection in the sinuses, middle ear, teeth or the bones of the face can spread inward.
  • Through injuries or surgery: a head injury, skull fracture, brain or spine surgery, or a medical device such as a shunt can let germs in.
  • Along nerves: some viruses, such as herpes simplex and rabies, travel along nerves to the brain.
  • From insect or animal bites: mosquitoes and ticks can carry viruses that cause encephalitis. Rabies spreads through bites or scratches from infected animals.

Some germs that cause meningitis spread from person to person through close contact, coughing, sneezing or kissing. Others come from food. For example, Listeria bacteria in unpasteurised dairy or some ready-to-eat foods can cause meningitis, especially in pregnant people, newborns and older adults.

Risk factors

Anyone can get a CNS infection, but the risk is higher for:

  • Newborns, young children and adults over 65
  • People with a weak immune system, for example from HIV, cancer treatment, an organ transplant or medicines that lower immunity
  • People without a working spleen
  • People who are not up to date with vaccines
  • Students and others living in close quarters, such as dormitories or military barracks
  • People who have had brain or spine surgery, a head injury, or who have a shunt or other device
  • People who inject drugs, have diabetes, or have long-term heavy alcohol use
  • Travellers to areas where certain infections are common, and people who spend time outdoors where mosquitoes or ticks live

Diagnosis

A CNS infection is a medical emergency. Doctors often start treatment before all the test results are back, because waiting can be dangerous.

Tests may include:

  • Physical and nerve examination: checking alertness, neck stiffness, strength, reflexes, eyes and skin.
  • Blood tests: to look for signs of infection and to grow germs from the blood (blood cultures).
  • Lumbar puncture (spinal tap): a thin needle is placed between the bones of the lower back to collect a small amount of cerebrospinal fluid. This is the most important test for meningitis and encephalitis. The fluid is checked for white blood cells, sugar, protein and germs.
  • Brain or spine scans: a CT scan or an MRI scan can show swelling, abscesses or other changes. A scan is sometimes done before a lumbar puncture.
  • Other tests: an EEG (a recording of brain waves) if seizures are suspected, or tests on samples from the nose, throat or stool.

Knowing the exact germ helps doctors choose the best treatment.

Treatment

Treatment depends on the cause and on how sick you are. Most people need care in hospital, and some need intensive care.

Bacterial infections

Antibiotics are given straight into a vein as soon as possible. Common choices include ceftriaxone or cefotaxime (antibiotics that kill many bacteria), often with vancomycin. Ampicillin may be added to cover Listeria. In newborns, gentamicin, an aminoglycoside antibiotic, is sometimes used together with ampicillin. A steroid medicine called dexamethasone may be given with the first antibiotic dose in some types of bacterial meningitis to reduce swelling and the risk of hearing loss.

Viral infections

Many cases of viral meningitis get better on their own with rest, fluids and pain relief. If herpes simplex encephalitis is possible, doctors start acyclovir, an antiviral medicine, right away. There is no specific medicine for many other viruses, so care focuses on support.

Fungal and parasitic infections

Fungal infections are treated with antifungal medicines such as amphotericin B and flucytosine, followed by fluconazole, often for many months. Parasitic infections are treated with medicines aimed at the specific parasite, sometimes with steroids.

Abscesses

A brain or epidural abscess usually needs weeks of antibiotics. Surgery to drain the pus is often needed, especially if it is pressing on the brain or spinal cord.

Supportive care

This can include fluids, oxygen, medicines to control seizures, and treatment to lower pressure inside the skull. Prion diseases have no cure; care focuses on comfort and support for the person and their family.

Recovery and living with it

Recovery can take weeks to months. Many people feel tired, have headaches, or find it hard to concentrate for a while after they leave hospital. These problems often improve over time.

  • Rest, and return to work or school gradually.
  • Take every dose of your medicine for as long as your care team advises, even if you feel better.
  • Ask for a hearing test after bacterial meningitis, especially in children.
  • Rehabilitation, such as physical, occupational or speech therapy, can help with weakness, balance, memory or speech.
  • Tell your care team about mood changes, anxiety or trouble sleeping. Support is available.

Complications

Possible long-term effects include:

  • Hearing loss
  • Problems with memory, learning or concentration
  • Seizures or epilepsy
  • Weakness, paralysis or problems with movement and balance
  • Vision or speech problems
  • Changes in mood or behaviour
  • Loss of fingers, toes or limbs after severe blood infection with some kinds of bacterial meningitis

Some CNS infections can be life-threatening, which is why fast treatment matters so much.

Outlook

The outlook varies a great deal. Most people with viral meningitis recover fully. Bacterial meningitis, encephalitis and abscesses are more serious, but many people recover well with prompt treatment. The sooner treatment starts, the better the chances. Prion diseases are the exception: they cannot currently be cured and get worse over time.

Prevention

  • Vaccines: routine vaccines protect against several causes, including Hib, pneumococcal, meningococcal, measles, mumps, chickenpox and polio. Travel vaccines are available for some infections, such as Japanese encephalitis and tick-borne encephalitis. Ask whether you are up to date.
  • Avoid bites: use insect repellent, wear long sleeves and pants outdoors, and check for ticks after time in grassy or wooded areas.
  • Animal safety: avoid touching wild animals, keep pets' rabies vaccines current, and get medical advice right away after any animal bite or bat contact.
  • Food safety: during pregnancy, avoid unpasteurised milk and soft cheeses made from it, and follow advice on deli meats.
  • Good hygiene: wash your hands often and do not share drinks, utensils or toothbrushes.
  • Close contacts: if someone close to you has meningococcal meningitis, you may be offered antibiotics to prevent infection.
  • Treat nearby infections: get ear, sinus and dental infections checked and treated.

In Canada

Invasive meningococcal disease, Hib, invasive pneumococcal disease and several viral encephalitides (including West Nile virus) are nationally notifiable in Canada. Vaccine schedules for meningococcal and pneumococcal vaccines vary by province and territory; see the Canadian Immunization Guide.

Diagnosis

CNS infections span meningitis, encephalitis, myelitis, brain abscess and spinal or cranial epidural abscess, with bacterial, viral, fungal, parasitic and prion causes. The classic triad of fever, neck stiffness and altered mental status is present in fewer than half of adults with bacterial meningitis; nearly all have at least two of headache, fever, neck stiffness and altered mentation.

  • Obtain blood cultures immediately.
  • Lumbar puncture with opening pressure, cell count and differential, glucose (with paired serum glucose), protein, Gram stain, culture, and multiplex or targeted PCR (HSV-1/2, VZV, enterovirus). Add cryptococcal antigen in immunocompromised patients and arboviral IgM where exposure fits.
  • CT before LP if immunocompromised, history of CNS disease, new seizure, papilloedema, reduced level of consciousness or focal deficit. Do not delay antibiotics for imaging.
  • MRI with contrast is preferred for encephalitis, abscess, myelitis and epidural abscess (urgent whole-spine MRI when suspected).
  • Consider HIV testing, and autoimmune encephalitis (e.g. anti-NMDA receptor antibodies) when infectious work-up is negative.

Management

Guidelines: IDSA bacterial meningitis (2004) and healthcare-associated ventriculitis and meningitis (2017), IDSA encephalitis (2008), ESCMID acute bacterial meningitis (2016), NICE NG240 (2024).

  • Suspected bacterial meningitis: empiric IV ceftriaxone or cefotaxime plus vancomycin where pneumococcal cephalosporin resistance is possible; add ampicillin if over 50, pregnant, immunocompromised or alcohol-dependent (Listeria). Neonates: ampicillin plus gentamicin or cefotaxime. Post-neurosurgical: vancomycin plus an antipseudomonal beta-lactam.
  • Dexamethasone before or with the first antibiotic dose in suspected pneumococcal meningitis in adults and Hib in children; continue only if pneumococcus or Hib is confirmed (per local guidance).
  • Suspected encephalitis: empiric IV acyclovir without waiting for PCR; adjust for renal function and maintain hydration (nephrotoxicity). A negative early HSV PCR may need repeating.
  • Cryptococcal meningitis: amphotericin B plus flucytosine induction, then fluconazole; manage raised intracranial pressure with therapeutic LPs.
  • Abscesses: source control (aspiration or excision; urgent decompression for epidural abscess with deficits) plus prolonged targeted therapy.
  • Aminoglycosides have poor CSF penetration; monitor levels, renal function and hearing.
  • Notify public health and arrange chemoprophylaxis for close contacts of meningococcal and Hib disease.

Red flags: falling GCS, seizures, purpuric rash, shock, focal neurology, signs of herniation. Follow-up: audiology after bacterial meningitis, neurocognitive and rehabilitation assessment. Mortality and sequelae are highest with pneumococcal meningitis, untreated HSV encephalitis and delayed treatment.

When to get medical help

See a doctor the same day if you have a fever with a headache that is worse than usual, or if you feel very unwell after a recent ear, sinus or tooth infection, head injury or surgery.

Call emergency services or go to the nearest emergency department right away if you or someone else has:

  • Fever with a stiff neck, severe headache or sensitivity to light
  • Confusion, unusual drowsiness or difficulty waking
  • A seizure
  • A rash that does not fade under pressure
  • New weakness, numbness, trouble speaking or loss of bladder or bowel control
  • Severe back pain with fever
  • In a baby: fever, floppiness, poor feeding, a bulging soft spot or unusual crying

Do not wait to see if symptoms improve. These infections can get worse within hours.

In an emergency, call 911.

References

  1. U.S. National Library of Medicine. MeSH: Central Nervous System Infections. meshb.nlm.nih.gov
  2. NINDS: Meningitis and encephalitis. ninds.nih.gov/health-information/disorders/meningitis-and-encephalitis
  3. CDC: Meningitis. cdc.gov/meningitis/index.html
  4. WHO: Meningitis fact sheet. who.int/news-room/fact-sheets/detail/meningitis
  5. IDSA: Practice guidelines for the management of bacterial meningitis (2004). doi.org/10.1086/425368
  6. IDSA: The management of encephalitis, clinical practice guidelines (2008). doi.org/10.1086/589747
  7. NICE: Meningitis (bacterial) and meningococcal disease, NG240. nice.org.uk/guidance/ng240